Skip to content

Refactor - #34

Merged
arcisad merged 16 commits into
mainfrom
refactor
Aug 27, 2026
Merged

arcisad merged 16 commits into
mainfrom
refactor

Conversation

@arcisad

@arcisad arcisad commented Aug 24, 2026 •

Copy link
Copy Markdown
Collaborator

This is an attempt to clean up and refactor the code, where possible. Please leave comments wherever you think it might have slipped and could have been improved.

The main changes are:

  • running isort on the imports
  • removing async aws file and moving it as AsyncS3Util to the existing aws module.
  • Adding SSIM as an additional metric to the one Cop30 test, where antemeridian crossing is tested.

@caitlinadams caitlinadams left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks really good overall, thanks for doing the clean up, and for adding the AWS async as a class. Most of my requested changes are related to comments explaining the reasoning behind some additions you've made. The other thing I think is that we're now only using S3Util in one place, and I'm wondering if that could be replaced by AsyncS3Util -- that would allow us to get rid of the S3Util code.

Comment thread .github/workflows/ci.yml Resolved
Comment thread dem_handler/dem/rema.py Resolved
Comment thread dem_handler/utils/logging.py Resolved
Comment thread tests/cop_glo30/test_dem_cop.py Resolved
Comment thread pyproject.toml Resolved
Comment thread pyproject.toml Resolved
Comment thread dem_handler/utils/aws.py Resolved
Comment thread dem_handler/utils/aws.py Resolved
Comment thread dem_handler/download/aws.py Resolved
Comment thread tests/download_test_data.py Resolved
@arcisad
arcisad requested a review from caitlinadams August 27, 2026 04:19

@caitlinadams caitlinadams left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me -- I've made a suggestion that you can use pooch's processor=Unzip() approach in the retrieve call to do the unpacking, which will remove the need for the extra few lines. Happy for you to either make this change or ignore it.

Comment thread dem_handler/dem/rema.py Resolved
Comment thread pyproject.toml Resolved
@arcisad
arcisad merged commit 1283a7c into main Aug 27, 2026
3 checks passed
@arcisad
arcisad deleted the refactor branch August 27, 2026 05:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants